//
//  SVTopScrollView.h
//  SlideView
//
//  Created by Chen Yaoqiang on 13-12-27.
//  Copyright (c) 2013年 Chen Yaoqiang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SVTopScrollViewDelegate <NSObject>

@optional
//点击扩展按钮
-(void)svTopAddButtonClick;

@end

@interface SVTopScrollView : UIView <UIScrollViewDelegate>
{
    NSArray *nameArray;
    NSInteger userSelectedChannelID;        //点击按钮选择名字ID
    NSInteger scrollViewSelectedChannelID;  //滑动列表选择名字ID
    UIImageView *shadowImageView;   //选中阴影
}
@property (nonatomic,assign) id <SVTopScrollViewDelegate> svTopDelegate;
@property (nonatomic,retain) NSArray *nameArray;
@property (nonatomic,retain) UIScrollView *scrollView;
@property(nonatomic,retain) NSMutableArray *buttonOriginXArray;
@property(nonatomic,retain) NSMutableArray *buttonWithArray;
@property(nonatomic,retain) UIFont *labelFont;


@property (nonatomic, assign) NSInteger scrollViewSelectedChannelID;

+ (SVTopScrollView *)shareInstance;
/**
 *  加载顶部标签
 */
- (void)initWithNameButtons;
/**
 *  滑动撤销选中按钮
 */
- (void)setButtonUnSelect;
/**
 *  滑动选择按钮
 */
- (void)setButtonSelect;
/**
 *  滑动顶部标签位置适应
 */
-(void)setScrollViewContentOffset;

+ (void)setSelectedIndex:(NSInteger)index;

//更多按钮状态
-(void)setMoreButtonSelectState:(BOOL)state;

@end
